package main

import (
	"fmt"

	"gitee.com/bojinyuan/pkg-manager-go/pkg/db"
)

func main() {
	//test mysql
	//mysqlDB, err := db.InitGormDB("mysql", "127.0.0.1", "root", "admin123456890", "ceshi11", 3306, 10, 100, 3600)
	//if err != nil {
	//	fmt.Println(err)
	//	return
	//}

	//test kingbase
	//_, err := db.InitGormDB("kingbase", "127.0.0.1", "root", "admin123456", "dataserver", 54321, 10, 100, 3600)
	//if err != nil {
	//	fmt.Println(err)
	//	return
	//}

	//test dm
	//_, err := db.InitGormDB("dameng", "127.0.0.1", "SYSDBA", "admin123456", "dataserver", 5236, 10, 100, 3600)
	//if err != nil {
	//	fmt.Println(err)
	//	return
	//}

	//test postgres
	//_, err := db.InitGormDB("postgres", "127.0.0.1", "vrvmeeting", "admin123456", "dataserver", 5432, 10, 100, 3600)
	//if err != nil {
	//	fmt.Println(err)
	//	return
	//}

	//test gbase8s
	_, err := db.InitGormDB("gbase8s", "127.0.0.1", "xingongsuokt", "yhX64.bOR#%.Ci@m", "linkdood.dataserver", 15400, 10, 100, 3600)
	if err != nil {
		fmt.Println(err)
		return
	}

}
